SRCS:=$(wildcard src/*.c)
OBJS:=$(patsubst src/%.c, bin/%.o, $(SRCS))
OUTS:=main
$(OUTS): $(OBJS)
	gcc $^ -o $@

objs/%.o: src/%.c
	gcc -c $^ -o $@ -I include

.PHONY: clean rebuild print

print:
	echo $(OBJS)

clean:
	$(RM) $(OBJS) $(OUTS)

rebuild: clean $(OUTS)
